﻿using CommunityToolkit.Mvvm.ComponentModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CommunityToolkitMvvmTemplateVs2022.Model
{
    public class MainModel : ObservableObject
    {
        private string? _text;
        public string? Text
        {
            //get { return _text; }
            //set { SetProperty(ref _text, value); }

            // 简写
            get => _text;
            set => SetProperty(ref _text, value);
        }
    }
}
